using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using ServiceStack.DataAnnotations;

namespace MMM.Services.Type
{
    /// <summary>
    /// 社保信息管理
    /// </summary>
    [Serializable]
    [Route("/api/productinfo", "POST,PUT")]
    public class ProductInfo : EntityBase<ProductInfo>
    {
        /// <summary>
        /// 城市编号
        /// </summary>
        [StringLength(50)]
        [Required]
        public String AreaCode { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        [StringLength(50)]
        [Required]
        public String AreaName { get; set; }
        /// <summary>
        /// 产品类型
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String ProductType { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String ProductName { get; set; }
        /// <summary>
        /// 比例Id
        /// </summary>
        [StringLength(50)]
        public Guid? RatioId { get; set; }
        /// <summary>
        /// 比例名称
        /// </summary>
        [StringLength(50)]
        [Required]
        public String RatioName { get; set; }
        /// <summary>
        /// 收费频率
        /// </summary>
        [StringLength(50)]
        [Required]
        public String PayFrequency { get; set; }
        /// <summary>
        /// 缴费月份
        /// </summary>
        [StringLength(50)]
        public string PayMonth { get; set; }
        /// <summary>
        /// 调整基数月份
        /// </summary>
        [StringLength(50)]
        public string AdjustBaseMonth { get; set; }
        /// <summary>
        /// 办理日期
        /// </summary>
        public int? TransactDate { get; set; }
        /// <summary>
        /// 停办日期
        /// </summary>
        public int? SuspendDate { get; set; }
        /// <summary>
        /// 托收方式
        /// </summary>
        [StringLength(50)]
        [Required]
        public String CollectionWay { get; set; }
        /// <summary>
        /// 停办方式
        /// </summary>
        [StringLength(50)]
        [Required]
        public String SuspendWay { get; set; }

    }
}
